import request from "@/utils/request";
import {adminUrl} from "@/utils/baseUrl.js"
export default {
  //获取学院
  getCollegesList() {
    return request({
      url: adminUrl+ "/collegebase/colleges/allList",
      method: "get",
    });
  },
  //获取系部
  getDepartmentsList(collegeId) {
    return request({
      url:adminUrl+ "/collegebase/departments/byCollege/list",
      method: "get",
      params: {
        collegeId,
      },
    });
  },
  //获取专业
  getProfessionsList(departmentsId) {
    return request({
      url: adminUrl+ "/collegebase/professions/byDepartments/list",
      method: "get",
      params: {
        departmentsId,
      },
    });
  },
  //获取系部下的班级
  getClassesListByDepartmentsId(departmentsId) {
    return request({
      url: adminUrl + "/collegebase/classes/byDepartments/list",
      method: "get",
      params: {
        departmentsId,
      },
    });
  },
  //获取班级
  getClassesList(professionsId) {
    return request({
      url: adminUrl + "/collegebase/classes/byProfessions/list",
      method: "get",
      params: {
        professionsId,
      },
    });
  },  //获取班级
  getTeacherByCollegeId(collegeId) {
    return request({
      url: adminUrl + "/collegebase/teacher-teachers/getByCollegeId",
      method: "get",
      params: {
        collegeId,
      },
    });
  },
  //获取班级详情
  getClassesDetail(id) {
    return request({
      url: adminUrl + "/collegebase/classes/get",
      method: "get",
      params: {
        id,
      },
    });
  },
};
